From: Dan Winship Date: Thu, 8 Sep 2011 20:50:32 +0000 (-0400) Subject: messageTray: fix a warning X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7712 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fd25cf30ff69cc208524f7f6c8f1009a8b376c39;p=gnome-shell.git messageTray: fix a warning Check for click in keyboardBox rather than Main.keyboard.actor, since the latter won't exist when the keyboard is hidden. https://bugzilla.gnome.org/show_bug.cgi?id=658598 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index f2721cf1b..6de4b7a53 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -284,7 +284,8 @@ FocusGrabber.prototype = { let source = event.get_source(); switch (event.type()) { case Clutter.EventType.BUTTON_PRESS: - if (!this.actor.contains(source) && !Main.keyboard.actor.contains(source)) + if (!this.actor.contains(source) && + !Main.layoutManager.keyboardBox.contains(source)) this.emit('button-pressed', source); break; case Clutter.EventType.KEY_PRESS: